<template>
  <div>
    <!-- 轮播图 -->
    <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
      <van-swipe-item v-for="item in value" :key="item.id" class="swipe_item">
        <img :src="item.img" alt v-if="item.img" />
        <img :src="item.src" alt v-if="item.src" />
      </van-swipe-item>
    </van-swipe>
  </div>
</template>

<script>
export default {
  props: {
    // 合法性校验
    value: {
      type: Array,
      default: () => []
    }
  },
  data() {
    return {};
  },
  created() {},
  methods: {}
};
</script>

<style lang="less" scoped>
.swipe_item {
  height: 100%;
}
</style>